<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>My JSP 'HouseholdRepair.jsp' starting page</title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
        <link rel="stylesheet" type="text/css" href="styles.css">
        -->
    <!-- <link rel="stylesheet" type="text/css" href="css/easyui.css">
    <link rel="stylesheet" type="text/css" href="css/icon.css">
    <link rel="stylesheet" type="text/css" href="css/demo.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="js/jquery.easyui.min.js"></script> -->

    <link rel="stylesheet" type="text/css" href="../../WEB-INF/jquery-easyui-1.3.3/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="../../WEB-INF/jquery-easyui-1.3.3/themes/icon.css">
    <script type="text/javascript" src="../js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/jquery.easyui.min.js"></script>

    <script type="text/javascript">

        var xmlhttp; //核心对象;
        function createXMLHttp() {
            //这个函数用来创建一个 核心对象XmlHttpRequest 根据浏览器的不同，创建不同的
            if (window.XMLHttpRequest) {
                xmlhttp = new XMLHttpRequest();
            } else {
                xmlhttp = new ActiveXObject("MSXML2.XMLHTTP"); //IE浏览器
            }
        }

        function exportcourse() {
            $.ajax({
                /* async : false,
                cache : false, */
                type : "GET",
                url : "/business/exportcourse",
                dataType : 'json',
                error : function(data) {
                    debugger;
                    window.open(data.responseText,"_blank");
                }
            });
        }

    </script>
</head>

<body>
<center>
    <center>
            <a href="javascript:exportcourse()" >导出</a>
    </center>
</center>
</body>
</html>
